package net.lcheng.manage.vo;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * Created by LV on 2016/6/27.
 */
public class AttributeModel {
    //分类Id
    private String categoryId;

    //属性名称
    @NotEmpty(message = "属性名称不为空")
    private String attributeName;

    //属性类型
    private int attributeType;

    //是否允许上传图片
    private int isAllowedUpload;

    //属性值
    private String attributeValue;

    //排序
    private int orderNum;

    //状态
    private int status;

    //是否适用所有分类
    private int isAdaptAll;

    public int getIsAdaptAll() {
        return isAdaptAll;
    }

    public void setIsAdaptAll(int isAdaptAll) {
        this.isAdaptAll = isAdaptAll;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getAttributeName() {
        return attributeName;
    }

    public void setAttributeName(String attributeName) {
        this.attributeName = attributeName;
    }

    public int getAttributeType() {
        return attributeType;
    }

    public void setAttributeType(int attributeType) {
        this.attributeType = attributeType;
    }

    public int getIsAllowedUpload() {
        return isAllowedUpload;
    }

    public void setIsAllowedUpload(int isAllowedUpload) {
        this.isAllowedUpload = isAllowedUpload;
    }

    public String getAttributeValue() {
        return attributeValue;
    }

    public void setAttributeValue(String attributeValue) {
        this.attributeValue = attributeValue;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
